package com.yxw.live_vod_facade.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 站内分享DTO
 * @author liuxin
 * @date 2023.11.04
 */
@Data
public class OnSiteShareDto implements Serializable {

    private static final long serialVersionUID = 81700446865649L;

    @NotNull(message = "分享类型不能为空")
    @ApiModelProperty(value = "分享类型 1：视频 2：直播")
    private Integer shareType;

    @NotBlank(message = "分享对象ID不能为空")
    @ApiModelProperty(value = "分享对象ID：视频ID/直播ID等")
    private String bussId;

    @Valid
    @NotEmpty(message = "被分享人不能为空")
    @ApiModelProperty(value = "被分享人不能为空")
    List<OnSiteShareUserDto> shareUserList;

}

